package com.fand.department.po;

import java.util.Date;

import javax.persistence.Id;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 部门与语言
 * 
 * @author haitao.yao
 * 
 */
public class DepartmentLa implements java.io.Serializable {
	/**
	 * 版本号
	 */
	private static final long serialVersionUID = 371882635599482724L;

	/**
	 * 开始时间
	 */
	private Date beginDaTi;

	/**
	 * 部门标识
	 */
	private String departmentId;

	/**
	 * 结束时间
	 */
	private Date endDaTi;

	/**
	 * 标识
	 */
	@Id
	private String id;

	/**
	 * 语言标识
	 */
	private String languageId;

	/**
	 * 获取
	 * 
	 * @return 开始时间
	 */
	public Date getBeginDaTi() {
		return this.beginDaTi;
	}

	/**
	 * 获取
	 * 
	 * @return 部门标识
	 */
	public String getDepartmentId() {
		return this.departmentId;
	}

	/**
	 * 获取
	 * 
	 * @return 结束时间
	 */
	public Date getEndDaTi() {
		return this.endDaTi;
	}

	/**
	 * 获取
	 * 
	 * @return 标识
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * 获取
	 * 
	 * @return 语言标识
	 */
	public String getLanguageId() {
		return this.languageId;
	}

	/**
	 * 设置
	 * 
	 * @param beginDaTi
	 *            开始时间
	 * @return 部门与语言
	 */
	public DepartmentLa setBeginDaTi(final Date beginDaTi) {
		this.beginDaTi = beginDaTi;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param departmentId
	 *            部门标识
	 * @return 部门与语言
	 */
	public DepartmentLa setDepartmentId(final String departmentId) {
		this.departmentId = departmentId;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param endDaTi
	 *            结束时间
	 * @return 部门与语言
	 */
	public DepartmentLa setEndDaTi(final Date endDaTi) {
		this.endDaTi = endDaTi;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param id
	 *            标识
	 * @return 部门与语言
	 */
	public DepartmentLa setId(final String id) {
		this.id = id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param languageId
	 *            语言标识
	 * @return 部门与语言
	 */
	public DepartmentLa setLanguageId(final String languageId) {
		this.languageId = languageId;

		return this;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}